<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class SyUser extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sy_user', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('userid')->nullable(false)->comment('');
			$table->string('username', 30)->nullable(false)->default('')->comment('');
			$table->string('userpwd', 32)->nullable(false)->default('')->comment('');
			$table->string('usertype', 20)->nullable(false)->default('')->comment('');
			$table->integer('userParent')->nullable(false)->default(0)->comment('');
			$table->string('Co_ID', 200)->nullable()->default('')->comment('');
			$table->string('avatar', 150)->nullable()->default(null)->comment('用户头像');
			$table->timestamp('created_at')->nullable()->comment('');
			$table->timestamp('updated_at')->nullable()->comment('');
			$table->integer('scope')->nullable()->default(null)->comment('');
			$table->boolean('status')->nullable()->default(1)->comment('用户状态');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sy_user');
    }
}
